<template>
<!-- 统计营收 -->
    <div id="SupplierStatistics">
        <div ref="echartsRef" style="width: 1000px;height: 600px;border: 1px solid gray;"></div>
    </div>
</template>

<script>
export default {
  name: "SupplierStatistics",
  data(){
    return{

    }
  },
  methods:{
    //初始化图表
    initEcharts(){
        //在dom里创建echarts对象
        this.echartsObj= this.$echarts.init(this.$refs['echartsRef'])

        //创建指定图表类型option对象
        var option={
          xAxis: {
            data: ['A', 'B', 'C', 'D', 'E']
          },
          yAxis: {},
          series: [
            {
              data: [100, 72, 58, 93, 19],
              type: 'line',
              smooth: true
            }
          ]
        }
        //设置option对象
          this.echartsObj.setOption(option)
      },

      //获取图标数据
  },
  created() {

  },
  mounted() {
    this.initEcharts()
  }
}
</script>

<style scoped>

</style>